<template>
  <div>
    <button @click="start">开始任务</button>
  </div>
</template>
<script>
import { defineComponent } from "vue";
import { useRouter } from "vue-router";
export default defineComponent({
  name: "Start",
  setup() {
    let router = useRouter();
    // 路由跳转
    let start = () => {
      router.push("/home");
    };
    return {
      start,
    };
  },
});
</script>
